package com.five.community.service;

import com.five.community.bean.Mailbox;
import com.five.community.bean.Village;
import com.five.community.bean.vo.MailboxVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MailboxService {
    //查询信箱信息和小区名字
    List<MailboxVo> selectAll() throws Exception;
    //根据信箱人名查询信箱信箱
    List<MailboxVo> selectByName(String name) throws Exception;
    //页面删除操作
    void delete(long id) throws Exception;
    //添加插入操作
    void insert(Mailbox mailbox) throws Exception;
    //根据id查询信箱信息
    Mailbox selectById(long id) throws Exception;
    //修改信箱信息
    void update(Mailbox mailbox) throws Exception;
    //获取分页信息
    PageInfo<MailboxVo> getPageInfo(int pageNum, int pageSize) throws Exception;
}
